package club;

public class Member {
    private String name;
    private String studentId;
    private String department;
    private String clubName;

    public Member(String name, String studentId, String department, String clubName) {
        this.name = name;
        this.studentId = studentId;
        this.department = department;
        this.clubName = clubName;
    }

    // Getter and Setter methods
    public String getName() {
        return name;
    }

    public String getStudentId() {
        return studentId;
    }

    public String getDepartment() {
        return department;
    }

    public String getClubName() {
        return clubName;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public void setClubName(String clubName) {
        this.clubName = clubName;
    }

    @Override
    public String toString() {
        return name + " (" + studentId + "), " + department + " in " + clubName;
    }
}
